<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/dao/InvoiceDao.php'); 

	header("Content-Type:text/xml");  
	$invoiceDao = new InvoiceDao();
	
	echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
	
	//dispatch kid is the major post file to handle save and load of kid creche info (add food, diper, read kid xml, ...)
	
	
	
	if($_POST['action'] == "readKidInvoice"){
		echo $invoiceDao->readKidInvoiceXml($_POST['kidId'], $_POST['year'], $_POST['month']);
	}

?>